const Router = require('koa-router');
const router = new Router();
const {db, Op, QueryTypes} = require("../../models/db");
router.post('/app/getUser', async ctx => {
    let tenantId= ctx.user.tenantId
    let body= ctx.request.body
    let id = body.id
    let user = await db.models['admin'].findOne({
        where: {
            id
        }
    })
    return ctx.suc('', user)
})


module.exports = router;